using UnityEngine;

public class Trailer_Chaos_Vent : MonoBehaviour
{
	[SerializeField]
	private Vector3 TargetVentPos;

	[SerializeField]
	private bool IsVerticalVent;

	[SerializeField]
	private ParticleSystem smoke;

	private void OnTriggerEnter2D(Collider2D collision)
	{
		//IL_0023: Unknown result type (might be due to invalid IL or missing references)
		//IL_0037: Unknown result type (might be due to invalid IL or missing references)
		//IL_003c: Unknown result type (might be due to invalid IL or missing references)
		//IL_0042: Unknown result type (might be due to invalid IL or missing references)
		//IL_004d: Unknown result type (might be due to invalid IL or missing references)
		//IL_0052: Unknown result type (might be due to invalid IL or missing references)
		//IL_0066: Unknown result type (might be due to invalid IL or missing references)
		//IL_006b: Unknown result type (might be due to invalid IL or missing references)
		if ((Object)(object)((Component)collision).gameObject == (Object)(object)((Component)PlayerManager.Instance).gameObject)
		{
			((MonoBehaviour)this).StartCoroutine(Trailer_Chaos_VentManager.instance.StartVent(((Component)this).transform.position + new Vector3(0f, 0.5f, 0f), TargetVentPos + ((Component)this).transform.position + new Vector3(0f, 0.5f, 0f), IsVerticalVent, smoke));
		}
	}

	private void OnDrawGizmos()
	{
		//IL_0000: Unknown result type (might be due to invalid IL or missing references)
		//IL_0010: Unknown result type (might be due to invalid IL or missing references)
		//IL_0016: Unknown result type (might be due to invalid IL or missing references)
		//IL_001b: Unknown result type (might be due to invalid IL or missing references)
		Gizmos.color = Color.green;
		Gizmos.DrawWireSphere(((Component)this).transform.position + TargetVentPos, 0.5f);
	}
}
